package com.deimos.dataBase;

import java.util.Date;
import com.spotimage.eosps.EOConstants.AcqStatus;

public class Segment implements Comparable<Segment> {
    private Integer segmentId;
    private String name;
    private String sensor;
    private Date beginDate;
    private Date endDate;
    private Date updateDate;
    private AcqStatus acqStatus;
    private Task task;
    private double[][] swaths;

    public void setSwath(double[][] swathPoints) {
	this.swaths = swathPoints;
    }

    public double[][] getSwath() {
	return swaths;
    }

    /**
     * @return the updateDate
     */
    public Date getUpdateDate() {
	return updateDate;
    }

    /**
     * @param updateDate
     *            the updateDate to set
     */
    public void setUpdateDate(Date updateDate) {
	this.updateDate = updateDate;
    }

    /**
     * @return the segmentId
     */
    public Integer getSegmentId() {
	return segmentId;
    }

    /**
     * @param segmentId
     *            the segmentId to set
     */
    public void setSegmentId(Integer segmentId) {
	this.segmentId = segmentId;
    }

    /**
     * @return the name
     */
    public String getName() {
	return name;
    }

    /**
     * @param name
     *            the name to set
     */
    public void setName(String name) {
	this.name = name;
    }

    /**
     * @return the sensor
     */
    public String getSensor() {
	return sensor;
    }

    /**
     * @param sensor
     *            the sensor to set
     */
    public void setSensor(String sensor) {
	this.sensor = sensor;
    }

    /**
     * @return the beginDate
     */
    public Date getBeginDate() {
	return beginDate;
    }

    /**
     * @param beginDate
     *            the beginDate to set
     */
    public void setBeginDate(Date beginDate) {
	this.beginDate = beginDate;
    }

    /**
     * @return the endDate
     */
    public Date getEndDate() {
	return endDate;
    }

    /**
     * @param endDate
     *            the endDate to set
     */
    public void setEndDate(Date endDate) {
	this.endDate = endDate;
    }

    /**
     * @return the acqStatus
     */
    public AcqStatus getAcqStatus() {
	return acqStatus;
    }

    /**
     * @param acqStatus
     *            the acqStatus to set
     */
    public void setAcqStatus(AcqStatus acqStatus) {
	this.acqStatus = acqStatus;
    }

    /**
     * @return the task
     */
    public Task getTask() {
	return task;
    }

    /**
     * @param task
     *            the task to set
     */
    public void setTask(Task task) {
	this.task = task;
    }

    @Override
    public int compareTo(Segment o) {
	// TODO Auto-generated method stub
	return this.getBeginDate().compareTo(((Segment) o).getBeginDate());
    }
    

}
